import request from '@/utils/request'

// 查询采购分货配置列表
export function listPurAllocConfig(query) {
  return request({
    url: '/productAllocation/purAllocConfig/list',
    method: 'get',
    params: query
  })
}

// 查询采购分货配置详细
export function getPurAllocConfig(id) {
  return request({
    url: '/productAllocation/purAllocConfig/' + id,
    method: 'get'
  })
}

// 新增采购分货配置
export function addPurAllocConfig(data) {
  return request({
    url: '/productAllocation/purAllocConfig',
    method: 'post',
    data: data
  })
}

// 修改采购分货配置
export function updatePurAllocConfig(data) {
  return request({
    url: '/productAllocation/purAllocConfig',
    method: 'put',
    data: data
  })
}

// 删除采购分货配置
export function delPurAllocConfig(id) {
  return request({
    url: '/productAllocation/purAllocConfig/' + id,
    method: 'delete'
  })
}
